package com.yc.bran.snack.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.yc.bran.snack.bean.Address;
import com.yc.bran.snack.bean.GoodsInfo;

public interface IGoodsInfoMapper {
	
	List<GoodsInfo> selectAllGoodsInfo(int tid);
	
	List<GoodsInfo> getgoodsinfo();
	
	List<GoodsInfo> selectGoodsInfo(int gid);
	
	int add(Integer tid, String gname, Double gprice, String ginfo, Double gweight, Integer gblance, String gpic);  
	
	int close(int gid);
	
	int open(int gid);
	
	List<GoodsInfo> getgoods();
	
	int updateGblance(Map<String, Object> params);  
	
	int selectGblance(int gid);

	int updateGblance(int gid, int newGblance);
	
    List<Map<String, Object>> selectbackgoodsinfo(); 
}
